Book Contents

text object example

The following example shows the text object:

Example 1

<text name="Text1" height="21" width="243" left="237" top="288" visible="true" wallpaper="false" isReferenceObject="false" backStyle="transparent" backColor="#F0F000" foreColor="#00C000" wordWrap="true" sizeToFit="true" alignment="middleCenter" fontFamily="Gill Sans MT Ext Condensed Bold" fontSize="10" bold="true" italic="false" underline="false" strikethrough="false" caption="This is a text object." />

<animations>

<animateVisibility expression="If TagTest2 > 10 Then 0 Else 1" expressionTrueState="invisible" />

<animateRotation expression="TagTest2 " rotationMin="0" rotationMax="358" centerOfRotation="(90,40)">

<defaultExpressionRange />

</animateRotation>

<animateWidth expression="TagTest2 " horizontalChangeMin="10" horizontalChangeMax="100" anchor="left">

<defaultExpressionRange />

</animateWidth>

<animateHeight expression="TagTest2 " verticalChangeMin="0" verticalChangeMax="100" anchor="top">

<defaultExpressionRange />

</animateHeight>

<animateHorizontalPosition expression="TagTest2 " horizontalOffsetMin="0" horizontalOffsetMax="-250">

<constantExpressionRange min="0" max="100" />

</animateHorizontalPosition>

<animateVerticalPosition expression="TagTest2 " verticalOffsetMin="0" verticalOffsetMax="240">

<constantExpressionRange min="0" max="200" />

</animateVerticalPosition>

<animateHorizontalSlider expression="TagS2" horizontalOffsetMin="10" horizontalOffsetMax="100">

<defaultExpressionRange />

</animateHorizontalSlider>

<animateVerticalSlider expression="TestS2" verticalOffsetMin="0" verticalOffsetMax="250">

<constantExpressionRange min="0" max="100" />

</animateVerticalSlider>

<animateFill expression="TagTest2 " fillMin="0" fillMax="100" fillDirection="down" insideOnly="true">

<defaultExpressionRange />

</animateFill>

<animateColor expression="If TagTest2< 20 Then 1 Else 2" blinkRate="2">

<color value="0" foreBehavior="blink" foreColor1="yellow" foreColor2="#40FF10" backBehavior="blink" backColor1="red" backColor2="#8C0000" />

<color value="1" foreBehavior="blink" foreColor1="black" foreColor2="white" backBehavior="blink" backColor1="lime" backColor2="#004000" />

</animateColor>

</animations>

</text>

Example 2

<text name="Text1" height="44" width="134" left="308" top="91" visible="true" wallpaper="false" backStyle="transparent" backColor="#F0F000" foreColor="#00C000" wordWrap="true" sizeToFit="true" alignment="middleCenter" fontFamily="Arial" charHeight="44" charWidth="7" bold="false" italic="false" underline="false" strikethrough="false" caption="This is another text object"/>

See also

Drawing objects: text object

text object attributes and elements